package com.matt.repository.courseV2;

import com.matt.domain.courseV2.Ability;
import com.matt.domain.courseV2.ChildrenMonthRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ChildrenMonthRecordRepository extends JpaRepository<ChildrenMonthRecord, String>, JpaSpecificationExecutor<ChildrenMonthRecord> {

    ChildrenMonthRecord findByChildrenIdAndChildrenMonthOrderByCreatedAsc(String childrenId,Integer childrenMonth);

    List<ChildrenMonthRecord> findByChildrenId(String childrenId);
}